﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administracion/Administracion.Master" AutoEventWireup="true" CodeBehind="frmpedidos.aspx.cs" Inherits="ProyectoIngenieriaSoftware.Administracion.Formulario_web15" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style11
        {
            text-align: center;
        }
        .style10
    {
        width: 176px;
    }
        .style13
        {
            width: 100%;
            height: 413px;
        }
        .style57
        {
            width: 397px;
            text-align: right;
        }
        .style41
        {
            width: 311px;
            text-align: right;
        }
        .style53
        {
            width: 244px;
        }
        .style43
        {
            width: 213px;
        }
        .style32
        {
            width: 139px;
        }
        .style45
        {
            font-size: large;
        }
        .style69
        {
            text-align: right;
        }
        .style72
        {
            width: 397px;
            text-align: center;
        }
        .style73
        {
            font-size: medium;
        }
        </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanelprincipal" runat="server">
        <ContentTemplate>
            <table class="style1">
                <tr>
                    <td>
                        &nbsp;</td>
                </tr>
                <tr>
                    <td>
                        <asp:UpdatePanel ID="UpdatepanelTitulo" runat="server">
                            <ContentTemplate>
                                <div class="style11">
                                    <asp:Label ID="lblTitulo" runat="server" Text="Administración de Pedidos"></asp:Label>
                                </div>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </td>
                </tr>
                <tr>
                    <td>
                        <asp:UpdatePanel ID="updatepaneagregar" runat="server">
                            <ContentTemplate>
                                <table class="style1">
                                    <tr>
                                        <td>
                                            <asp:UpdatePanel ID="UpdatePanelBotonesPrincipales" runat="server">
                                                <ContentTemplate>
                                                    <table class="style1">
                                                        <tr>
                                                            <td>
                                                                &nbsp;</td>
                                                            <td class="style10">
                                                                <asp:Menu ID="MnuOpcionesPrincipales" runat="server" 
                                                                    onmenuitemclick="MnuOpcionesPrincipales_MenuItemClick" Orientation="Horizontal">
                                                                    <Items>
                                                                        <asp:MenuItem Text="RealizarPedido" Value="opcRealizarPedido"></asp:MenuItem>
                                                                        <asp:MenuItem Text="BuscarPedido" Value="opcBuscarPedido"></asp:MenuItem>
                                                                    </Items>
                                                                </asp:Menu>
                                                            </td>
                                                            <td>
                                                                &nbsp;</td>
                                                        </tr>
                                                    </table>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:UpdatePanel ID="UpdatePanelControlesFactura" runat="server">
                                                <ContentTemplate>
                                                    <table class="style13">
                                                        <tr>
                                                            <td class="style57">
                                                                &nbsp;</td>
                                                            <td class="style41">
                                                                Codigo de cliente</td>
                                                            <td class="style53">
                                                                <asp:TextBox ID="txtcodigocliente" runat="server" Height="24px" Width="165px" 
                                                                    AutoPostBack="True"></asp:TextBox>
                                                                <asp:TextBoxWatermarkExtender ID="txtcodigocliente_TextBoxWatermarkExtender" 
                                                                    runat="server" TargetControlID="txtcodigocliente" 
                                                                    WatermarkText="Ingrese el codigo cliente">
                                                                </asp:TextBoxWatermarkExtender>
                                                                <asp:FilteredTextBoxExtender ID="txtcodigocliente_FilteredTextBoxExtender" 
                                                                    runat="server" FilterType="Numbers" TargetControlID="txtcodigocliente">
                                                                </asp:FilteredTextBoxExtender>
                                                            </td>
                                                            <td class="style43">
                                                                &nbsp;</td>
                                                            <td class="style32">
                                                                &nbsp;</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="style57">
                                                                &nbsp;</td>
                                                            <td class="style41">
                                                                Nombre del cliente</td>
                                                            <td class="style53">
                                                                <asp:Label ID="lblnombrecliente" runat="server"></asp:Label>
                                                            </td>
                                                            <td class="style43">
                                                                &nbsp;</td>
                                                            <td class="style32">
                                                                &nbsp;</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="style57">
                                                                &nbsp;</td>
                                                            <td class="style41">
                                                                Numero de productos solicitados</td>
                                                            <td class="style53">
                                                                <asp:Label ID="numroProductosSolicitado" runat="server">0</asp:Label>
                                                            </td>
                                                            <td class="style43">
                                                                &nbsp;</td>
                                                            <td class="style32">
                                                                &nbsp;</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="style57">
                                                                &nbsp;</td>
                                                            <td class="style41">
                                                                Valor total a pagar</td>
                                                            <td class="style53">
                                                                <asp:Label ID="lblvalortotalapagar" runat="server" CssClass="style45">0</asp:Label>
                                                            </td>
                                                            <td class="style43">
                                                                &nbsp;</td>
                                                            <td class="style32">
                                                                &nbsp;</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="style57">
                                                                &nbsp;</td>
                                                            <td class="style41">
                                                                &nbsp;</td>
                                                            <td class="style53">
                                                                &nbsp;</td>
                                                            <td class="style43">
                                                                &nbsp;</td>
                                                            <td class="style32">
                                                                &nbsp;</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="style57">
                                                                &nbsp;</td>
                                                            <td class="style41">
                                                                &nbsp;</td>
                                                            <td class="style53">
                                                                &nbsp;</td>
                                                            <td class="style43">
                                                                &nbsp;</td>
                                                            <td class="style32">
                                                                &nbsp;</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="style57">
                                                                &nbsp;</td>
                                                            <td class="style41">
                                                                Codigo de producto</td>
                                                            <td class="style53">
                                                                <asp:TextBox ID="txtCodigoProducto" runat="server" AutoPostBack="True" ondisposed="txtCodigoProducto_Disposed" 
                                                                   
                                                                   
                                                                   ></asp:TextBox>
                                                                <asp:TextBoxWatermarkExtender ID="txtCodigoProducto_TextBoxWatermarkExtender" 
                                                                    runat="server" TargetControlID="txtCodigoProducto" 
                                                                    WatermarkText="Ingrese codigo producto">
                                                                </asp:TextBoxWatermarkExtender>
                                                                <asp:FilteredTextBoxExtender ID="txtCodigoProducto_FilteredTextBoxExtender" 
                                                                    runat="server" FilterType="Numbers" TargetControlID="txtCodigoProducto">
                                                                </asp:FilteredTextBoxExtender>
                                                            </td>
                                                            <td class="style43">
                                                                &nbsp;</td>
                                                            <td class="style32">
                                                                &nbsp;</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="style57">
                                                                &nbsp;</td>
                                                            <td class="style41">
                                                                Nombre producto</td>
                                                            <td class="style53">
                                                                <asp:Label ID="lblnombreproducto" runat="server"></asp:Label>
                                                            </td>
                                                            <td class="style43">
                                                                &nbsp;</td>
                                                            <td class="style32">
                                                                &nbsp;</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="style57">
                                                                &nbsp;</td>
                                                            <td class="style41">
                                                                valor unitario</td>
                                                            <td class="style53">
                                                                <asp:Label ID="lblValorunitario" runat="server"></asp:Label>
                                                            </td>
                                                            <td class="style43">
                                                                &nbsp;</td>
                                                            <td class="style32">
                                                                &nbsp;</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="style57">
                                                                &nbsp;</td>
                                                            <td class="style41">
                                                                unidades disponibles</td>
                                                            <td class="style53">
                                                                <asp:Label ID="lblunidadesdisponibles" runat="server"></asp:Label>
                                                            </td>
                                                            <td class="style43">
                                                                &nbsp;</td>
                                                            <td class="style32">
                                                                &nbsp;</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="style57">
                                                                &nbsp;</td>
                                                            <td class="style41">
                                                                cantidad solicitada</td>
                                                            <td class="style53">
                                                                <asp:TextBox ID="txtCantidadSolicitada" runat="server" AutoPostBack="True"></asp:TextBox>
                                                                <asp:TextBoxWatermarkExtender ID="txtCantidadSolicitada_TextBoxWatermarkExtender" 
                                                                    runat="server" TargetControlID="txtCantidadSolicitada" 
                                                                    WatermarkText="Ingrese cantidad solicitada">
                                                                </asp:TextBoxWatermarkExtender>
                                                                <asp:FilteredTextBoxExtender ID="txtCantidadSolicitada_FilteredTextBoxExtender" 
                                                                    runat="server" FilterType="Numbers" TargetControlID="txtCantidadSolicitada">
                                                                </asp:FilteredTextBoxExtender>
                                                            </td>
                                                            <td class="style43">
                                                                &nbsp;</td>
                                                            <td class="style32">
                                                                &nbsp;</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="style57">
                                                                &nbsp;</td>
                                                            <td class="style41">
                                                                &nbsp;</td>
                                                            <td class="style53">
                                                                &nbsp;</td>
                                                            <td class="style43">
                                                                &nbsp;</td>
                                                            <td class="style32">
                                                                &nbsp;</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="style57">
                                                                &nbsp;</td>
                                                            <td class="style41">
                                                                valor total producto</td>
                                                            <td class="style53">
                                                                <asp:Label ID="lblValorproducto" runat="server"></asp:Label>
                                                            </td>
                                                            <td class="style43">
                                                                &nbsp;</td>
                                                            <td class="style32">
                                                                &nbsp;</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="style57">
                                                                &nbsp;</td>
                                                            <td class="style41">
                                                                &nbsp;</td>
                                                            <td class="style53">
                                                                &nbsp;</td>
                                                            <td class="style43">
                                                                &nbsp;</td>
                                                            <td class="style32">
                                                                &nbsp;</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="style69" colspan="5">
                                                                &nbsp;</td>
                                                        </tr>
                                                        <tr>
                                                            <td class="style72">
                                                                &nbsp;</td>
                                                          
                                                            <td class="style11" colspan="2">
                                                                <asp:Button ID="btnGrabar" runat="server" Text="Grabar producto" 
                                                                    CssClass="style73" onclick="btnGrabar_Click1" />
                                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                                <asp:Button ID="btnGenerarFactura" runat="server" Text="Generar Factura" 
                                                                    CssClass="style73" onclick="btnGenerarFactura_Click1" />
                                                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                                                <asp:Button ID="btnCancelar" runat="server" Text="Cancelar" CssClass="style73" 
                                                                    onclick="Button4_Click" />
                                                            </td>
                                                        </tr>
                                                    </table>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Label ID="lblError" runat="server"></asp:Label>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:GridView ID="grdDetalleFactura" runat="server">
                                            </asp:GridView>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td>
                                            &nbsp;</td>
                                    </tr>
                                </table>
                                <br />
                                <br />
                                <br />
                                <br />
                                <br />
                                <br />
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </td>
                </tr>
                <tr>
                    <td>
                        &nbsp;</td>
                </tr>
            </table>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
